<include file="Shared:Header" />
<body class="Bodybg">
        <div class="easyui-panel" data-options="fit:true,border:false,bodyCls:'Bodybg',footer:'#ft'">
        <form id="FF" class="easyui-form" method="post" data-options="novalidate:true">
            <table width="100%" border="0" cellpadding="3" cellspacing="0" class="EditTable">
                <thead>
                    <tr>
                        <td colspan="4">说明：带<span class="Red">*</span>必填；访问地址父菜单填写#；排序数字越小越靠前 排序范围：1-100 默认按添加顺序排；菜单按钮四项参数都可留空</td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td width="100" align="right"><span class="Red">*</span> 菜单名称：</td>
                        <td>
                            <input id="Name" name="Name" type="text" class="easyui-validatebox" data-options="required:true,validType:['length[1,100]']" />
                        </td>
                        <td width="80" align="right"><span class="Red">*</span> 菜单地址：</td>
                        <td>
                            <input id="Url" name="Url" type="text" class="easyui-textbox" data-options="required:true,validType:['length[1,100]'],prompt:'填写区域和控制器名称组成的绝对地址'" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">父级菜单：</td>
                        <td>
                            <select id="ParentID" name="ParentID" class="easyui-combotree" data-options="required:true,url: '../MenuTree' ,queryParams: {Add: '[{ID:0,text:父级菜单}]'}">

                            </select>
                        </td>
                        <td align="right"><span class="Red">*</span> 菜单图标：</td>
                        <td>
                            <input type="text" id="Icon" name="Icon" class="easyui-textbox" data-options="required:true,buttonText: ' 点击选择 ',iconAlign:'left',editable: false,onClickButton: function () {$.XB.window({'url':'admin.php/system/AidPage/icon/?ID=Icon','title':'图标选择','width':590,'height':300});}">
                        </td>
                    </tr>
                    <tr>
                        <td align="right">排序：</td>
                        <td>
                            <input id="Sort" name="Sort" type="text" class="easyui-numberbox" data-options="min:1,formatter: $.XB.JSSortInt" />
                        </td>
                        <td align="right">状态：</td>
                        <td>
                            <select id="Status" name="Status">
                                <option value="1">正常</option>
                                <option value="0">隐藏</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <table width="100%" border="0" cellpadding="3" cellspacing="0" class="EditTable">
                                <thead>
                                    <tr style="background-image:none;background-color:#e5e5e5;color:#444;cursor:pointer;">
                                        <td width="100">按钮名称</td>
                                        <td title="点击按钮触发的地址，默认：菜单地址+按钮英文名称">访问地址</td>
                                        <td title="窗口页面提交后，执行的地址，默认：菜单地址+save">提交地址</td>
                                        <td title="提交地址执行完成后，触发的函数">执行函数</td>
                                        <td title="不填写，默认：650px">窗口宽度</td>
                                        <td title="不填写，默认：400px">窗口高度</td>
                                        <td title="点击按钮后，窗口打开的方式">打开方式</td>
                                        <td><input id="btnSearch" onclick="$.XB.window({ 'url': '__APP__/system/AidPage/MenuButton/?ID=0', 'title': '菜单按钮', 'width': 620, 'height': 350 });" type="button" value="加按钮"></td>
                                    </tr>
                                </thead>
                                <tbody id="mb">

                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
            <input name="__RequestVerificationToken" type="hidden" value="ClGqPMpPW0hoBrCAibkJOMtTrQ2BiZ5k6syBhNc3BkRx83hQ-Yeoi_cygvMjy9g_5v81BPePrJbOPoSym1DX0owpux9yc3wwaN2pcrfrVJQ1" />
            <input type="hidden" id="ID" name="ID" />
        </form>
    </div>
    <div id="ft" style="padding:4px;text-align:center;">
        <input onclick="$.XB.pagesave({ 'istree': true });" type="button" value=" 确 定 " />
        <input onclick="$.XB.easyuireset();" type="button" style="margin-left:20px;" value=" 重 置 " />
    </div>
        <script type="text/javascript">
            $(function(){
                $(".tree").child('li').prepend("");
            });

            function mbdel(t, f) {
                if (typeof (f) == 'undefined') {
                    $(t).remove();
                }
                else {
                    $(f).parent().parent().remove();
                }
            }
            function UP(t) {
                var $T = $(t).parent().parent();
                $T.prev().before($T);
            }
            function Down(t) {
                var $T = $(t).parent().parent();
                $T.next().after($T);
            }
        </script>
</body>
<include file="Shared:Footer" />
